import smswatch
import e32

PREFIX = ''

def handle(msg, src):
    print 'message from %s: %s' % (src, msg)


engine = smswatch.SMSEngine(handle)
print 'Listening...'
engine.start_listening(PREFIX)
e32.ao_sleep(25)
print 'Exiting...'
engine.stop_listening()